import request from '@/router/axios'

// 获取客户标签组列表
export function getTagGroupList(query) {
    return request({
        url: '/cp/workcontacttaggroup',
        method: 'get',
        params: query
    })
}

// 查询状态
export function querystatus() {
    return request({
        url: '/cp/clientlossmanage/querystatus',
        method: 'get',
    })
}

//新增规则
export function addRule(obj) {
    return request({
      url: '/cp/clientlossmanage',
      method: 'post',
      data: obj
    })
}

//删除规则
export function delRule(id) {
    return request({
      url: '/cp/clientlossmanage/' + id,
      method: 'delete'
    })
}

//查询记录
export function getStatus() {
    return request({
        url: '/cp/clientlossmanage/query',
        method: 'get',
    })
}

//开启、关闭
export function selectStatus(status) {
    return request({
      url: '/cp/clientlossmanage/select/'+status,
      method: 'put',
    })
}

// 修改规则
export function updateRule(obj) {
    return request({
      url: '/cp/clientlossmanage/update-rule',
      method: 'put',
      data: obj
    })
}  